lib/repo: Add some assertions for ABI sizes
authorColin Walters <walters@verbum.org>
Wed, 23 Aug 2017 18:25:43 +0000 (14:25 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 24 Aug 2017 14:58:51 +0000 (14:58 +0000)
commit95bac299e54020e6cc795b126deefc8c2c7820f4
treeb716d499cb71c23622e96b96c829e2aab826a28d
parent882fa906e2df2af1870b620d1482a00607337b60
lib/repo: Add some assertions for ABI sizes

Things like https://sourceware.org/libabigail/manual/abidiff.html
look interesting but in a brief look I couldn't work out
how to conveniently use them for quick ABI sanity checking without
doing a diff from a previous build (which we could do but would be
more involved).

This way will at least catch struct ABI breaks on x86_64 which
I think we'd be most likely to do accidentally when trying
to use one of the previous unused values.

I found the hole values via gdb's `pahole` command.

Closes: #1108
Approved by: jlebon
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h